Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter C

Total Complexity 103
Dependencies 27
Dependents 5
Total lines 856
Lines of code 431
Logical lines of code 222
Comment lines 288
Methods 31
Properties 3

Methods 31

Method Rating Maintainability Complexity Lines of code
get_wc_product_sale_price_effective_date()
A
51 12 28
get_wc_product_description()
A
49 9 30
map_wc_product_sale_price()
A
49 9 29
map_wc_product_image()
S
52 7 25
mapTypes()
S
53 7 22
map_wc_shipping_dimensions()
S
48 5 38
map_gla_attributes()
S
60 4 13
map_wc_product_price()
S
56 3 19
map_product_categories()
S
57 3 18
add_shipping_country()
S
57 3 18
validate_availability()
S
64 4 10
map_woocommerce_product()
S
60 3 13
convert_product_types()
S
62 3 11
map_wc_availability()
S
63 3 11
load_validator_metadata()
S
46 1 40
validate_item_group_id()
S
69 3 7
shipping_country_exists()
S
65 3 9
map_wc_shipping_weight()
S
59 2 15
remove_shipping_country()
S
65 3 9
map_wc_product_shipping()
S
63 2 10
get_product_type_by_id()
S
64 2 9
map_wc_general_attributes()
S
66 2 9
override_attributes()
S
70 2 6
map_tax_excluded()
S
71 1 5
map_wc_prices()
S
74 1 5
get_google_product_offer_id()
S
79 1 3
is_variation()
S
80 1 3
is_virtual()
S
80 1 3
map_wc_product_id()
S
75 1 4
get_wc_product()
S
82 1 3
setTargetCountry()
S
72 1 6